home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / libg_261.zip / libg_261 / libg++ / vms / VMS-CURSES.C < prev    next >
C/C++ Source or Header  |  1992-03-03  |  632b  |  42 lines

  1. /* These are routines that are used in various places within libg++, which
  2.    do not actually appear within curses anywhere.  */
  3.  
  4. struct    _kb_st
  5. {
  6.     int    _id;
  7.     unsigned char    _flags;
  8. };
  9.  
  10. struct _kb_st * stdkb __asm("_$$PsectAttributes_NOSHR$$stdkb");
  11.  
  12. extern int stdscr; /* This is the wrong type, but it does not matter.  */
  13.  
  14. mvcur(int ly,int lx,int ny,int nx)
  15. {
  16.     wmove (stdscr, ny, nx);
  17. }
  18.  
  19. _setecho(int i)
  20. {
  21.     if(i) stdkb->_flags &= ~1;
  22.     else stdkb->_flags |= 1;
  23. }
  24.  
  25. _setnonl(int i)
  26. {
  27.     if(i) stdkb->_flags &= ~2;
  28.     else stdkb->_flags |= 2;
  29. }
  30.  
  31.  
  32. cbreak()
  33. {
  34.     stdkb->_flags &= ~4;
  35.     stdkb->_flags |= 2;
  36. }
  37.  
  38. nocbreak()
  39. {
  40.     stdkb->_flags |= 4;
  41. }
  42.